Ext.define('DragonApp.view.gift.Grid', {
    extend: 'DragonApp.view.foundation.Grid',

    alias: ['widget.giftgrid'],

    controller: 'gift',

    requires: [
        'DragonApp.store.JsonPGift'
    ],

    columns: [
        { text: '序号', dataIndex: 'id', align: 'center' },
        { text: '道具名称', dataIndex: 'giftid', align: 'center' },
        { text: '道具数量', dataIndex: 'weapon', align: 'center' },
        {
            xtype: 'widgetcolumn',
            width: 100,
            sortable: false,
            menuDisabled: true,
            widget: {
                xtype: 'button',
                text: '删除',
                width: 80,
                glyph: DragonApp.util.Glyphs.getGlyph('destroy'),
                tooltip: 'Delete',
                handler: 'onDelete'
            },
            itemId: 'delete'
        }
    ],
    store: {
        type: 'jsonPGiftStore',
        storeId : 'jsonPGiftStore'
    }
});